package com.ruoyi.school.service;

import java.util.List;
import com.ruoyi.school.domain.SchoolNews;
import com.ruoyi.school.domain.User;
import org.springframework.web.multipart.MultipartFile;

/**
 * 消息维护Service接口
 * 
 * @author ruoyi
 * @date 2024-04-15
 */
public interface ISchoolNewsService 
{
    /**
     * 查询消息维护
     * 
     * @param id 消息维护主键
     * @return 消息维护
     */
    public SchoolNews selectSchoolNewsById(Long id);

    /**
     * 查询消息维护列表
     * 
     * @param schoolNews 消息维护
     * @return 消息维护集合
     */
    public List<SchoolNews> selectSchoolNewsList(SchoolNews schoolNews);



    public int updateSchoolNews(SchoolNews schoolNews);


    List<SchoolNews> selectSchoolNewsListById(Long userId);

    User handleFileUpload(MultipartFile file, String nickName, String code);
}
